package com.mingliu.transactionalevent.model;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 2020/03/28.
 * Description:ins_asset
 * @author liudong
 */

@Entity
public class InsAsset implements Serializable
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 用户Id
     */
    private Integer userId;
    /**
     * 资产类型Code
     */
    private String assetCode;
    /**
     * 资产数量
     */
    private BigDecimal assetCount;
    /**
     * 锁定资产数量
     */
    private BigDecimal lockAssetCount;
    /**
     * 创建时间
     */
    private Date insertTime;
    /**
     * 最后更新时间
     */
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAssetCode() {
        return assetCode;
    }

    public void setAssetCode(String assetCode) {
        this.assetCode = assetCode;
    }

    public BigDecimal getAssetCount() {
        return assetCount;
    }

    public void setAssetCount(BigDecimal assetCount) {
        this.assetCount = assetCount;
    }

    public BigDecimal getLockAssetCount() {
        return lockAssetCount;
    }

    public void setLockAssetCount(BigDecimal lockAssetCount) {
        this.lockAssetCount = lockAssetCount;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "InsAsset{" +
                "id=" + id +
                ", userId=" + userId +
                ", assetCode='" + assetCode + '\'' +
                ", assetCount=" + assetCount +
                ", lockAssetCount=" + lockAssetCount +
                ", insertTime=" + insertTime +
                ", updateTime=" + updateTime +
                '}';
    }
}


